package com.ydkj.a37e_mall.Classes.Model.Request;

import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/2/18.
 */

public class MyFavorReq {
    private String uuid;
    private String page;
    private String page_size;
    private String secret;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPage_size() {
        return page_size;
    }

    public void setPage_size(String page_size) {
        this.page_size = page_size;
    }

    public String urlString() {
        return "favor/favor";
    }

    public String getSecret() {

        String string = "uuid=" + uuid + "&page=" + page + "&page_size=" + page_size;
        try {
            Rsa rsa = new Rsa();
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return secret;
    }
}
